package com.tieland.xunda.common.sys;

import com.tieland.xunda.common.jdbc.DBConnection;
import com.tieland.xunda.common.vo.LoginVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * User: qiukx
 * Date: 2008-7-28
 * Company: tieland
 * Description:
 */
public interface UserContext {
    public DBConnection getDbc();

    public void clear();

    public String get(String paraName);

    public String get(String paraName, String defaultValue);

    public HttpServletRequest getReq();

    public HttpServletResponse getRes();

    public HttpSession getSession();

    public LoginVO getLoginVO();

    public String getSysName();

    public boolean isLogin();

    public boolean hasPrivilidge(String privilidgeId);
}
